// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "Widgets\Layout\SWidgetSwitcher.h"
#include "CoreMinimal.h"

class USurveillanceSubWindow;


struct SurveillanceCameraInitArgs
{
	int32 Row;
	int32 Column;
	float Padding;
	UWorld* World;
	TArray<TWeakObjectPtr<UMaterialInstanceDynamic>> ImageMaterials;
	TArray<FName> CameraNames;
	TSubclassOf<USurveillanceSubWindow> SubWndClass;
};



class SURVEILLANCECAMERA_API SSurveillanceWindow : public SWidgetSwitcher
{
public:
	SLATE_BEGIN_ARGS(SSurveillanceWindow)
	{}
		SLATE_ARGUMENT(SurveillanceCameraInitArgs, CameraInitArgs)
	SLATE_END_ARGS()

	/** Constructs this widget with InArgs */
	void Construct(const FArguments& InArgs);

private:
	TSharedPtr<SGridPanel> pGridPanel;
	
	void OnZoomBtnClicked(bool IsZoom, USurveillanceSubWindow* SubWnd);
};
